# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-pytest-isort
_pyname=pytest-isort
pkgver=1.1.0
pkgrel=0
pkgdesc="pytest plugin to check import ordering using isort"
url="https://pypi.org/project/pytest-isort/"
arch="noarch"
license="BSD-3-Clause"
depends="py3-pytest py3-isort"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/p/pytest-isort/pytest-isort-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD" pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="bd510c0296f464f0cb3c136011022f9fbcbe974e5dd8f7f79304b3d05185c303c79925e432b161524c023686de6316830cf4e45e9ab6b361ff878f6403af9e5d  pytest-isort-1.1.0.tar.gz"
